import Main from '@/components/main'
import parentView from '@/components/parent-view'

/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: (false) 设为true后此级路由将不会出现在面包屑中，示例看QQ群路由配置
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  access: (null) 可访问该页面的权限数组，当前路由设置的权限会影响子路由
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 *  beforeCloseName: (-) 设置该字段，则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法，作为关闭前的钩子函数
 * }
 */

export default [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: 'Login - 登录',
            hideInMenu: true
        },
        // component: () => import('@/view/login/login.vue')// 验证码登录
        component: () => import('@/view/login/login1.vue')// 账号密码登录
    },
    {
        path: '/forgetPwd',
        name: 'forgetPwd',
        meta: {
            title: 'forgetPwd - 忘记密码',
            hideInMenu: true
        },
        component: () => import('@/view/forget/index.vue')
    },
    {
        path: '/resetPwd',
        name: 'resetPwd',
        meta: {
            title: 'resetPwd - 更改密码',
            hideInMenu: true
        },
        component: () => import('@/view/forget/reset_password.vue')
    },
    {
        path: '/',
        name: '_home',
        redirect: '/home',
        component: Main,
        meta: {
            hideInMenu: true,
            notCache: true
        },
        children: [
            {
                path: '/home',
                name: 'home',
                meta: {
                    hideInMenu: true,
                    title: '首页',
                    notCache: true,
                    icon: 'md-home'
                },
                component: () => import('@/view/home/home.vue')
            },
            {
                path: 'setting',
                name: 'setting',
                meta: {
                    hideInMenu: true,
                    title: '个人中心',
                    notCache: true,
                    icon: 'md-home'
                },
                component: () => import('@/view/setting/setting.vue')
            }
        ]
    },
    {
        path: '/base-manager',
        name: 'ROLE_baseManager',
        title: '基础配置管理',
        meta: {
            icon: 'md-home',
            title: '基础配置管理'
        },
        component: Main,
        children: [
            {
                path: 'menu',
                name: 'ROLE_baseManager:menu',
                title: '菜单管理',
                meta: {
                    icon: 'ios-list',
                    title: '菜单管理'
                },
                component: () => import('@/view/base_config_manager/menu.vue')

            },
            // {
            //   path: '*',
            //   name: 'error_404',
            //   meta: {
            //     hideInMenu: true
            //   },
            //   component: () => import('@/view/error-page/404.vue')
            // }
            //person ROLE_baseManager:user /adminSys/baseManager/userManager1
            {
                path: 'user',
                name: 'ROLE_baseManager:user',
                title: '用户管理',
                meta: {
                    icon: 'ios-people',
                    title: '用户管理'
                },
                component: () => import('@/view/base_config_manager/user.vue')
            },
            {
                path: 'system',
                name: 'ROLE_baseManager:system',
                title: '系统管理',
                meta: {
                    icon: 'ios-flower-outline',
                    title: '系统管理'
                },
                component: () => import('@/view/base_config_manager/system.vue')
            },
            {
                path: 'role-group',
                name: 'ROLE_baseManager:roleGroup',
                title: '角色组管理',
                meta: {
                    icon: 'ios-man',
                    title: '角色组管理'
                },
                component: () => import('@/view/base_config_manager/role_group_manager.vue')
            },
            {
                path: 'role-type',
                name: 'ROLE_baseManager:roleType',
                title: '角色类型管理',
                meta: {
                    icon: 'md-person',
                    title: '角色类型管理'
                },
                component: () => import('@/view/base_config_manager/role_type.vue')
            },
            {
                path: 'log',
                name: 'ROLE_baseManager:log',
                title: '操作日志',
                meta: {
                    icon: 'ios-book',
                    title: '操作日志'
                },
                component: () => import('@/view/base_config_manager/operation_log.vue')
            },
            {
                path: 'parameter',
                name: 'ROLE_cache:parameter',
                title: '缓存设置',
                meta: {
                    icon: 'ios-aperture',
                    title: '缓存设置'
                },
                component: () => import('@/view/ckCache/cacheSettings.vue')
            },
            {
                path: 'recycling',
                name: 'ROLE_recycling:conversion',
                title: '可回收积分换算设置',
                meta: {
                    icon: 'ios-calculator-outline',
                    title: '可回收积分换算设置'
                },
                component: () => import('@/view/ckRecycling/conversion.vue')

            }
        ]

    },

    {
        path: '/content-generine',
        name: 'ROLE_generine',
        title: '代码生成管理',
        meta: {
            icon: 'ios-construct',
            title: '代码生成管理'
        },
        component: Main,
        children: [
            {
                path: 'data_source',
                name: 'ROLE_generine:db',
                title: '数据源管理',
                meta: {
                    icon: 'ios-desktop',
                    title: '数据源管理'
                },
                component: () => import('@/view/generine/data_source.vue')

            },
            {
                path: 'template_group',
                name: 'ROLE_generine:templateGroup',
                title: '模板分组管理',
                meta: {
                    icon: 'md-filing',
                    title: '模板分组管理'
                },
                component: () => import('@/view/generine/template_group.vue')

            },
            {
                path: 'template',
                name: 'ROLE_generine:template',
                title: '模板管理',
                meta: {
                    icon: 'md-square',
                    title: '模板管理'
                },
                component: () => import('@/view/generine/template.vue')

            },
            {
                path: 'build',
                name: 'ROLE_generine:build',
                title: '代码生成',
                meta: {
                    icon: 'md-ionitron',
                    title: '代码生成'
                },
                component: () => import('@/view/generine/build.vue')

            }
        ]
    },

    {
        path: '/content-manager',
        name: 'ROLE_onenet',
        title: 'OneNet管理',
        meta: {
            icon: 'md-git-merge',
            title: 'OneNet管理'
        },
        component: Main,
        children: [
            {
                path: 'product',
                name: 'ROLE_product:product',
                title: '产品管理',
                meta: {
                    icon: 'ios-archive',
                    title: '产品管理'
                },
                component: () => import('@/view/onenet/IotProduct.vue')

            },
            {
                path: 'device',
                name: 'ROLE_device:device',
                title: '设备管理',
                meta: {
                    icon: 'ios-easel',
                    title: '设备管理'
                },
                component: () => import('@/view/onenet/IotDevice.vue')

            }
        ]
    },

    {
        path: '/ROLE_MC',
        name: 'ROLE_MC',
        title: '通用管理',
        meta: {
            icon: 'md-git-merge',
            title: '机器中心'
        },
        component: Main,
        children: [
            {
                path: 'initparam',
                name: 'ROLE_MC:MachineCenter',
                title: '机器管理',
                meta: {
                    icon: 'settings',
                    title: '机器管理'
                },
                component: () => import('@/view/ckMachineCenter/MCmanagement.vue')
            },
            {
                path: 'CkFafangHuodao',
                name: 'ROLE_MC:DeviceStatus',
                title: '机器在线状态',
                meta: {
                    icon: 'settings',
                    title: '机器在线状态'
                },
                component: () => import('@/view/ckMachineCenter/gcDeviceStatus.vue')
            },
            {
                path: 'android',
                name: 'ROLE_MC:android',
                title: '安卓机器管理',
                meta: {
                    icon: 'settings',
                    title: '安卓机器管理'
                },
                component: () => import('@/view/ckMachineCenter/android.vue')
            },
            {
                path: 'vehicle',
                name: 'ROLE_MC:vehicle',
                title: '车辆定位',
                meta: {
                    icon: 'settings',
                    title: '车辆定位'
                },
                component: () => import('@/view/ckMachineCenter/Vehicle.vue')
            }

        ]
    },

    {
        path: '/ROLE_ckATM',
        name: 'ROLE_ATM',
        title: '村口售卖机',
        meta: {
            icon: 'ios-ionic-outline',
            title: '村口售卖机'
        },
        component: Main,
        children: [
            {
                path: 'initparam',
                name: 'ROLE_ckATM:initparam',
                title: 'ATM初始化信息',
                meta: {
                    icon: 'settings',
                    title: 'ATM初始化信息'
                },
                component: () => import('@/view/ckVendingMachine/ATMInitialize.vue')

            },
            {
                path: 'CkFafangHuodao',
                name: 'ROLE_ckATM:aisle',
                title: 'ATM货道信息',
                meta: {
                    icon: 'settings',
                    title: 'ATM货道信息'
                },
                component: () => import('@/view/ckVendingMachine/ATMaisle.vue')

            },
            {
                path: 'CurrentStatus',
                name: 'ROLE_ckATM:state',
                title: 'ATM当前状态',
                meta: {
                    icon: 'settings',
                    title: 'ATM当前状态'
                },
                component: () => import('@/view/ckVendingMachine/ATMstate.vue')
            },
            {
                path: 'ckFafangUpgoods',
                name: 'ROLE_ckATM:upgoods',
                title: 'ATM上货记录',
                meta: {
                    icon: 'settings',
                    title: 'ATM上货记录'
                },
                component: () => import('@/view/ckVendingMachine/ATMupgoods.vue')

            },
            {
                path: 'ckFafangRepeatckgoods',
                name: 'ROLE_ckATM:repeatckgoods',
                title: 'ATM重复编号记录',
                meta: {
                    icon: 'settings',
                    title: 'ATM重复编号记录'
                },
                component: () => import('@/view/ckVendingMachine/ATMrepeatckgoods.vue')

            },
            {
                path: 'ckFafangGoodsget',
                name: 'ROLE_ckATM:goodsget',
                title: 'ATM领取购买记录',
                meta: {
                    icon: 'settings',
                    title: 'ATM领取购买记录'
                },
                component: () => import('@/view/ckVendingMachine/ATMgoodsget.vue')

            },
            {
                path: 'ckFafangException',
                name: 'ROLE_ckATM:exception',
                title: 'ATM异常操作记录',
                meta: {
                    icon: 'settings',
                    title: 'ATM异常操作记录'
                },
                component: () => import('@/view/ckVendingMachine/ATMexception.vue')
            },
            {
                path: 'ckFafangMsgcode',
                name: 'ROLE_ckATM:msgcode',
                title: 'ATM返回码参照',
                meta: {
                    icon: 'settings',
                    title: 'ATM返回码参照'
                },
                component: () => import('@/view/ckVendingMachine/ATMmsgcode.vue')
            }

        ]
    },

    {
        path: '/ROLE_machine',
        name: 'ROLE_machine',
        title: '发放机中心',
        meta: {
            icon: 'ios-ionic-outline',
            title: '发放机中心'
        },
        component: Main,
        children: [
            {
                path: 'gcComminBag',
                name: 'ROLE_machine:gcComminBag',
                title: '社区积分上袋设置',
                meta: {
                    icon: 'md-checkmark',
                    title: '社区积分上袋设置'
                },
                component: () => import('@/view/ckLssuedMachine/lntegralSet.vue')
            },
            {
                path: 'gcDispenserSetnum',
                name: 'ROLE_machine:gcDispenserSetnum',
                title: '社区领袋设置',
                meta: {
                    icon: 'ios-arrow-up',
                    title: '社区领袋设置'
                },
                component: () => import('@/view/ckLssuedMachine/gcDispenserSetnum.vue')
            },
            {
                path: 'gcDispenserSetcommid',
                name: 'ROLE_machine:gcDispenserSetcommid',
                title: '社区掉袋设置',
                meta: {
                    icon: 'ios-arrow-down',
                    title: '社区掉袋设置'
                },
                component: () => import('@/view/ckLssuedMachine/gcDispenserSetcommid.vue')
            },
            {
                path: 'gcDispenserGetbag1',
                name: 'ROLE_machine:gcDispenserGetbag1',
                title: '用户领袋记录',
                meta: {
                    icon: 'ios-arrow-down',
                    title: '用户领袋记录'
                },
                component: () => import('@/view/ckLssuedMachine/gcDispenserGetbag1.vue')
            },
            {
                path: 'gcDispenserGetbag2',
                name: 'ROLE_machine:gcDispenserGetbag2',
                title: '未领袋用户',
                meta: {
                    icon: 'ios-arrow-down',
                    title: '未领袋用户'
                },
                component: () => import('@/view/ckLssuedMachine/gcDispenserGetbag2.vue')
            },
            {
                path: 'gcDispenserPrestore',
                name: 'ROLE_machine:gcDispenserPrestore',
                title: '厨余可回收绑定记录',
                meta: {
                    icon: 'ios-arrow-down',
                    title: '厨余可回收绑定记录'
                },
                component: () => import('@/view/ckLssuedMachine/gcDispenserPrestore.vue')
            }
            // {
            //   path: 'gcComminBag',
            //   name: 'ROLE_machine:gcComminBag',
            //   title: '发放机社区上袋积分设置',
            //   meta: {
            //     icon: 'ios-arrow-down',
            //     title: '发放机社区上袋积分设置'
            //   },
            //   component: () => import('@/view/ckLssuedMachine/gcComminBag.vue')
            // },
        ]
    },

    {
        path: '/ROLE_classification',
        name: 'ROLE_classification',
        title: '分类箱中心',
        meta: {
            icon: 'ios-rose-outline',
            title: '分类箱中心'
        },
        component: Main,
        children: [
            {
                path: 'gcGarbage',
                name: 'ROLE_classification:gcGarbage',
                title: '分类投放查询',
                meta: {
                    icon: 'ios-paper-outline',
                    title: '分类投放查询'
                },
                component: () => import('@/view/classification/gcGarbage.vue')
            },
            {
                path: 'gcGarbageDeli',
                name: 'ROLE_classification:gcGarbageDeli',
                title: '回收投放查询',
                meta: {
                    icon: 'ios-paper-outline',
                    title: '回收投放查询'
                },
                component: () => import('@/view/classification/gcGarbageDeli.vue')
            },
            {
                path: 'gcGarbageList',
                name: 'ROLE_classification:gcGarbageList',
                title: '用户分类投放排名',
                meta: {
                    icon: 'ios-paper-outline',
                    title: '用户分类投放排名'
                },
                component: () => import('@/view/classification/gcGarbageList.vue')
            },
            {
                path: 'gcGarbageDetail',
                name: 'ROLE_classification:gcGarbageDetail',
                title: '分类投放统计',
                meta: {
                    icon: 'ios-paper-outline',
                    title: '分类投放统计'
                },
                component: () => import('@/view/classification/gcGarbageDetail.vue')
            },
            {
                path: 'conversion',
                name: 'ROLE_classification:conversion',
                title: '定点巡检积分换算设置',
                meta: {
                    icon: 'ios-calculator',
                    title: '定点巡检积分换算设置'
                },
                component: () => import('@/view/classification/conversion.vue')
            }

        ]
    },

    {
        path: '/ROLE_bill',
        name: 'ROLE_bill',
        title: '账单',
        meta: {
            icon: 'ios-paper',
            title: '账单'
        },
        component: Main,
        children: [
            {
                path: 'ckBill',
                name: 'ROLE_bill:ckBill',
                title: '村口账单',
                meta: {
                    icon: 'ios-paper-outline',
                    title: '村口账单'
                },
                component: () => import('@/view/bill/ckBill.vue')
            },
            {
                path: 'allBill',
                name: 'ROLE_bill:allBill',
                title: '详细账单',
                meta: {
                    icon: 'md-paper',
                    title: '详细账单'
                },
                component: () => import('@/view/bill/allBill.vue')

            },
            {
                path: 'refund',
                name: 'ROLE_bill:refund',
                title: '退款账单',
                meta: {
                    icon: 'md-sync',
                    title: '退款账单'
                },
                component: () => import('@/view/bill/refund.vue')

            },
            {
                path: 'recode',
                name: 'ROLE_bill:recode',
                title: '退款记录',
                meta: {
                    icon: 'md-reorder',
                    title: '退款记录'
                },
                component: () => import('@/view/bill/recode.vue')

            },
            {
                path: 'IntegralTX',
                name: 'ROLE_bill:IntegralTX',
                title: '积分提现账单',
                meta: {
                    icon: 'md-list-box',
                    title: '积分提现账单'
                },
                component: () => import('@/view/bill/IntegralTX.vue')

            },
            {
                path: 'CkPaybagRules',
                name: 'ROLE_bill:CkPaybagRules',
                title: '领袋次数充值规则',
                meta: {
                    icon: 'md-list-box',
                    title: '领袋次数充值规则'
                },
                component: () => import('@/view/bill/ckPaybagRules.vue')
            },
            {
                path: 'CkBagCount',
                name: 'ROLE_bill:CkBagCount',
                title: '领袋次数充值记录',
                meta: {
                    icon: 'md-list-box',
                    title: '领袋次数充值记录'
                },
                component: () => import('@/view/bill/ckBagCount.vue')
            }
        ]
    },
    {
        path: '/ROLE_records',
        name: 'ROLE_records',
        title: '数据中心',
        meta: {
            icon: 'ios-ionic-outline',
            title: '数据中心'
        },
        component: Main,
        children: [
            {
                path: 'datascreen',
                name: 'ROLE_records:datascreen',
                title: '数据大屏',
                meta: {
                    icon: 'ios-calculator',
                    title: '数据大屏'
                },
                component: () => import('@/view/RecordsCenter/DataScreen.vue')

            },
            {
                path: 'participatcontrast',
                name: 'ROLE_records:participatcontrast',
                title: '参与率对比',
                meta: {
                    icon: 'ios-calculator',
                    title: '参与率对比'
                },
                component: () => import('@/view/RecordsCenter/participatContrast.vue')

            },
            {
                path: 'accuracy',
                name: 'ROLE_records:accuracy',
                title: '正确率对比',
                meta: {
                    icon: 'ios-calculator',
                    title: '正确率对比'
                },
                component: () => import('@/view/RecordsCenter/accuracy.vue')

            },
            {
                path: 'Deliverrate',
                name: 'ROLE_records:Deliverrate',
                title: '投递率对比',
                meta: {
                    icon: 'ios-calculator',
                    title: '投递率对比'
                },
                component: () => import('@/view/RecordsCenter/Deliverrate.vue')

            },
            {
                path: 'Recyclingreducing',
                name: 'ROLE_records:Recyclingreducing',
                title: '减量回收',
                meta: {
                    icon: 'ios-calculator',
                    title: '减量回收'
                },
                component: () => import('@/view/RecordsCenter/Recyclingreducing.vue')

            },
            {
                path: 'carmap',
                name: 'ROLE_records:carmap',
                title: '汽车轨迹',
                meta: {
                    icon: 'ios-calculator',
                    title: '汽车轨迹'
                },
                component: () => import('@/view/RecordsCenter/carmap.vue')

            },
            {
                path: 'carDeliver',
                name: 'ROLE_records:carDeliver',
                title: '清运车投递',
                meta: {
                    icon: 'ios-calculator',
                    title: '清运车投递'
                },
                component: () => import('@/view/RecordsCenter/carDeliver.vue')

            },
            {
                path: 'visitorDeliver',
                name: 'ROLE_records:visitorDeliver',
                title: '游客投递',
                meta: {
                    icon: 'ios-calculator',
                    title: '游客投递'
                },
                component: () => import('@/view/RecordsCenter/visitorDeliver.vue')

            }
        ]
    },

    // 积分商城
    {
        path: '/ROLE_mall',
        name: 'ROLE_mall',
        meta: {
            icon: 'md-cloud-upload',
            title: '积分商城'
        },
        component: Main,
        children: [
            {
                path: 'mall_fence',
                name: 'ROLE_mall:fence',
                meta: {
                    icon: 'ios-list',
                    title: '配送区域管理'
                },
                component: () => import('@/view/mall/Geographicalfence.vue')
            },
            {
                path: 'mall_goods',
                name: 'ROLE_mall:goods',
                meta: {
                    icon: 'ios-list',
                    title: '商品管理'
                },
                component: () => import('@/view/mall/MallProductInfo.vue')
            },
            {
                path: 'mall_order',
                name: 'ROLE_mall:order',
                meta: {
                    icon: 'ios-chatboxes',
                    title: '订单管理'
                },
                component: () => import('@/view/mall/MallOrder.vue')
            },
            {
                path: 'mall_user',
                name: 'ROLE_mall:user',
                meta: {
                    icon: 'ios-person',
                    title: '用户管理'
                },
                component: () => import('@/view/mall/MallUser.vue')
            },
            {
                path: 'mall_address',
                name: 'ROLE_mall:address',
                meta: {
                    icon: 'ios-home',
                    title: '地址管理'
                },
                component: () => import('@/view/mall/MallAddress.vue')
            },
            {
                path: 'mall_bill',
                name: 'ROLE_mall:bill',
                meta: {
                    icon: 'ios-cart',
                    title: '兑换记录'
                },
                component: () => import('@/view/mall/MallBill.vue')
            },
            {
                path: 'mall_IntegralPay',
                name: 'ROLE_mall:IntegralPay',
                meta: {
                    icon: 'ios-cart',
                    title: '积分充值记录'
                },
                component: () => import('@/view/mall/MallIntegralPay.vue')
            },
            {
                path: 'mall_category',
                name: 'ROLE_mall:category',
                meta: {
                    icon: 'ios-folder',
                    title: '商品类别'
                },
                component: () => import('@/view/mall/MallCategory.vue')
            },
            {
                path: 'mall_region',
                name: 'ROLE_mall:region',
                meta: {
                    icon: 'ios-calendar-outline',
                    title: '区域管理'
                },
                component: () => import('@/view/mall/MallRegion.vue')
            },
            {
                path: 'mall_admin',
                name: 'ROLE_mall:admin',
                meta: {
                    icon: 'ios-calendar-outline',
                    title: '站点管理员'
                },
                component: () => import('@/view/mall/mallAdmin.vue')
            }
        ]
    },

    // 用户中心
    {
        path: '/ROLE_pingHu',
        name: 'ROLE_pingHu',
        meta: {
            icon: 'md-aperture',
            title: '用户中心'
        },
        component: Main,
        children: [
            {
                path: 'pingHu_user',
                name: 'ROLE_pingHu:user',
                meta: {
                    icon: 'ios-people',
                    title: '用户管理'
                },
                component: () => import('@/view/pingHu/user.vue')
            },
            {
                path: 'pingHu_admin',
                name: 'ROLE_pingHu:admin',
                meta: {
                    icon: 'md-contact',
                    title: '管理员管理'
                },
                component: () => import('@/view/pingHu/admin.vue')
            },
            {
                path: 'pingHu_gcInspection',
                name: 'ROLE_pingHu:gcInspection',
                meta: {
                    icon: 'md-pint',
                    title: '回收数据'
                },
                component: () => import('@/view/pingHu/gcInspection.vue')
            },
            // {
            //   path: 'pingHu_gcInspectionC',
            //   name: 'ROLE_pingHu:gcInspectionC',
            //   meta: {
            //     icon: 'md-pint',
            //     title: '回收数据-厨余'
            //   },
            //   component: () => import('@/view/pingHu/gcInspectionC.vue')
            // },
            {
                path: 'pingHu_gcInspectionQ',
                name: 'ROLE_pingHu:gcInspectionQ',
                meta: {
                    icon: 'md-pint',
                    title: '回收数据-其他'
                },
                component: () => import('@/view/pingHu/gcInspectionQ.vue')
            },
            {
                path: 'pingHu_agora',
                name: 'ROLE_pingHu:agora',
                meta: {
                    icon: 'md-videocam',
                    title: '语音视频'
                },
                component: () => import('@/view/pingHu/agora.vue')
            },
            {
                path: 'pingHu_citizencard',
                name: 'ROLE_pingHu:citizencard',
                meta: {
                    icon: 'md-albums',
                    title: '芯片管理'
                },
                component: () => import('@/view/pingHu/citizencard.vue')
            },
            {
                path: 'pingHu_bankC',
                name: 'ROLE_pingHu:bankC',
                meta: {
                    icon: 'md-card',
                    title: '市民卡'
                },
                component: () => import('@/view/pingHu/bankC.vue')
            },
            {
                path: 'pingHu_bankOrder',
                name: 'ROLE_pingHu:bankOrder',
                meta: {
                    icon: 'md-clipboard',
                    title: '市民卡账单'
                },
                component: () => import('@/view/pingHu/bankOrder.vue')
            },
            {
                path: 'pingHu_orbit',
                name: 'ROLE_pingHu:orbit',
                meta: {
                    icon: 'md-car',
                    title: '芯片管理'
                    // md-git-pull-request
                    // ionic
                },
                component: () => import('@/view/pingHu/orbit.vue')
            },
            {
                path: 'pingHu_voMap',
                name: 'ROLE_pingHu:voMap',
                meta: {
                    icon: 'md-pin',
                    title: '人员定位'
                },
                component: () => import('@/view/pingHu/voMap.vue')
            },
            {
                path: 'pingHu_voVideo',
                name: 'ROLE_pingHu:voVideo',
                meta: {
                    icon: 'ios-undo',
                    title: '视频转发'
                },
                component: () => import('@/view/pingHu/voVideo.vue')
            },
            {
                path: 'pingHu_voOpinion',
                name: 'ROLE_pingHu:voOpinion',
                meta: {
                    icon: 'md-text',
                    title: '意见反馈'
                },
                component: () => import('@/view/pingHu/voOpinion.vue')
            },
            {
                path: 'pingHu_gcGarbage',
                name: 'ROLE_pingHu:gcGarbage',
                meta: {
                    icon: 'md-text',
                    title: '集置点数据'
                },
                component: () => import('@/view/pingHu/gcGarbage.vue')
            },
            {
                path: 'pingHu_gcGarbageTotal',
                name: 'ROLE_pingHu:gcGarbageTotal',
                meta: {
                    icon: 'md-text',
                    title: '集置点数据统计'
                },
                component: () => import('@/view/pingHu/gcGarbageTotal.vue')
            },
            {
                path: 'pingHu_carList',
                name: 'ROLE_pingHu:carList',
                meta: {
                    icon: 'md-text',
                    title: '车辆列表'
                },
                component: () => import('@/view/pingHu/carList.vue')
            }
        ]
    },
    { // 智慧城管
        path: '/ROLE_zhcg',
        name: 'ROLE_zhcg',
        meta: {
            icon: 'md-aperture',
            title: '智慧城管'
        },
        component: Main,
        children: [
            {
                path: 'zhcg_advertising',
                name: 'ROLE_zhcg:advertising',
                meta: {
                    icon: 'ios-document',
                    title: '广告管理'
                },
                component: () => import('@/view/zhcg/MallAdvertising.vue')
            },
            {
                path: 'zhcg_user',
                name: 'ROLE_zhcg:user',
                meta: {
                    icon: 'ios-document',
                    title: '用户管理'
                },
                component: () => import('@/view/zhcg/user.vue')
            },
            {
                path: 'zhcg_userSign',
                name: 'ROLE_zhcg:userSign',
                meta: {
                    icon: 'ios-document',
                    title: '用户签到记录'
                },
                component: () => import('@/view/zhcg/userSign.vue')
            },
            {
                path: 'zhcg_Notify',
                name: 'ROLE_zhcg:Notify',
                meta: {
                    icon: 'ios-document',
                    title: '消息通知'
                },
                component: () => import('@/view/zhcg/Notify.vue')
            },
            {
                path: 'zhcg_APPFeedback',
                name: 'ROLE_zhcg:APPFeedback',
                meta: {
                    icon: 'ios-document',
                    title: 'APP意见反馈'
                },
                component: () => import('@/view/zhcg/APPFeedback.vue')
            },
            {
                path: 'zhcg_userFeedback',
                name: 'ROLE_zhcg:userFeedback',
                meta: {
                    icon: 'ios-document',
                    title: '用户问题反馈'
                },
                component: () => import('@/view/zhcg/userFeedback.vue')
            },
            {
                path: 'zhcg_userBind',
                name: 'ROLE_zhcg:userBind',
                meta: {
                    icon: 'ios-document',
                    title: '用户绑卡记录'
                },
                component: () => import('@/view/zhcg/userBind.vue')
            },
            {
                path: 'zhcg_bbsTopic',
                name: 'ROLE_zhcg:bbsTopic',
                meta: {
                    icon: 'ios-document',
                    title: '论坛管理'
                },
                component: () => import('@/view/zhcg/bbsTopic.vue')
            },
            {
                path: 'zhcg_clear',
                name: 'ROLE_zhcg:clear',
                meta: {
                    icon: 'ios-document',
                    title: '清运记录'
                },
                component: () => import('@/view/zhcg/clear.vue')
            },
            {
                path: 'zhcg_recycle',
                name: 'ROLE_zhcg:recycle',
                meta: {
                    icon: 'ios-document',
                    title: '回收信息'
                },
                component: () => import('@/view/zhcg/recycle.vue')
            },
            {
                path: 'zhcg_unRecycle',
                name: 'ROLE_zhcg:unRecycle',
                meta: {
                    icon: 'ios-document',
                    title: '预约回收'
                },
                component: () => import('@/view/zhcg/unRecycle.vue')
            },
            {
                path: 'zhcg_adminSign',
                name: 'ROLE_zhcg:adminSign',
                meta: {
                    icon: 'ios-document',
                    title: '督导员签到记录'
                },
                component: () => import('@/view/zhcg/adminSign.vue')
            },
            {
                path: 'zhcg_deliveryGoods',
                name: 'ROLE_zhcg:deliveryGoods',
                meta: {
                    icon: 'ios-document',
                    title: '出库订单'
                },
                component: () => import('@/view/zhcg/CoDeliveryGoods.vue')
            }
        ]
    },
    { // 分类检查
        path: '/ROLE_check',
        name: 'ROLE_check',
        meta: {
            icon: 'md-aperture',
            title: '分类检查'
        },
        component: Main,
        redirect: '/ROLE_check/check_voRank',
        children: [
            {
                path: 'check_voCheck',
                name: 'ROLE_check:voCheck',
                meta: {
                    icon: 'md-pint',
                    title: '常规考核'
                },
                component: () => import('@/view/Check/voCheck.vue')
            },
            {
                path: 'check_voUser',
                name: 'ROLE_check:voUser',
                meta: {
                    icon: 'md-pint',
                    title: '人员管理'
                },
                component: () => import('@/view/Check/voUser.vue')
            },
            {
                path: 'check_voArea',
                name: 'ROLE_check:voArea',
                meta: {
                    icon: 'md-pint',
                    title: '区域管理'
                },
                component: () => import('@/view/Check/voArea.vue')
            },
            {
                path: 'check_voUserArea',
                name: 'ROLE_check:voUserArea',
                meta: {
                    icon: 'md-pint',
                    title: '人员任务管理'
                },
                component: () => import('@/view/Check/voUserArea.vue')
            },
            {
                path: 'check_voReview1',
                name: 'ROLE_check:voReview1',
                meta: {
                    icon: 'md-pint',
                    title: '考评记录'
                },
                component: () => import('@/view/Check/voReview1.vue')
            },
            {
                path: 'check_voRote',
                name: 'ROLE_check:voRote',
                meta: {
                    icon: 'md-pint',
                    title: '数据分析'
                },
                component: () => import('@/view/Check/voRote.vue')
            },
            {
                path: 'check_voRank',
                name: 'ROLE_check:voRank',
                meta: {
                    icon: 'md-pint',
                    title: '考评排名'
                },
                component: () => import('@/view/Check/voRank.vue')
            },
            {
                path: 'check_voStandard',
                name: 'ROLE_check:voStandard',
                meta: {
                    icon: 'md-pint',
                    title: '考核内容'
                },
                component: () => import('@/view/Check/voStandard.vue')
            },
            {
                path: 'check_voTask',
                name: 'ROLE_check:voTask',
                meta: {
                    icon: 'md-pint',
                    title: '考核任务'
                },
                component: () => import('@/view/Check/voTask.vue')
            },
            {
                path: 'check_voReview',
                name: 'ROLE_check:voReview',
                meta: {
                    icon: 'md-pint',
                    title: '考核评分'
                },
                component: () => import('@/view/Check/voReview.vue')
            },
            {
                path: 'check_voScore',
                name: 'ROLE_check:voScore',
                meta: {
                    icon: 'md-pint',
                    title: '评分内容'
                },
                component: () => import('@/view/Check/voScore.vue')
            },
            {
                path: 'check_VoRecord',
                name: 'ROLE_check:VoRecord',
                meta: {
                    icon: 'md-pint',
                    title: '打卡记录'
                },
                component: () => import('@/view/Check/VoRecord.vue')
            }

        ]
    },
    { // 定时任务
        path: '/ROLE_task',
        name: 'ROLE_task',
        meta: {
            icon: 'md-aperture',
            title: '定时任务'
        },
        component: Main,
        children: [
            {
                path: 'task_list',
                name: 'ROLE_task:list',
                meta: {
                    icon: 'ios-document',
                    title: '任务列表'
                },
                component: () => import('@/view/task/list.vue')
            },
            {
                path: 'task_record',
                name: 'ROLE_task:record',
                meta: {
                    icon: 'ios-document',
                    title: '运行记录'
                },
                component: () => import('@/view/task/record.vue')
            }

        ]
    },
    { // 数据统计
        path: '/ROLE_gcGarbage',
        name: 'ROLE_gcGarbage',
        meta: {
            icon: 'md-aperture',
            title: '数据统计'
        },
        component: Main,
        children: [
            {
                path: 'gcGarbage_dustbin',
                name: 'ROLE_gcGarbage:dustbin',
                meta: {
                    icon: 'ios-document',
                    title: '设备投递量统计'
                },
                component: () => import('@/view/gcGarbage/dustbin')
            },
            {
                path: 'gcGarbage_user',
                name: 'ROLE_gcGarbage:user',
                meta: {
                    icon: 'ios-document',
                    title: '居民投递量统计'
                },
                component: () => import('@/view/gcGarbage/user')
            },
            {
                path: 'gcGarbage_weight',
                name: 'ROLE_gcGarbage:weight',
                meta: {
                    icon: 'ios-document',
                    title: '投递量折线图'
                },
                component: () => import('@/view/gcGarbage/weight')
            }
        ]
    },
    { // 垃圾分类
        path: '/ROLE_sorting',
        name: 'ROLE_sorting',
        meta: {
            icon: 'md-aperture',
            title: '垃圾分类'
        },
        component: Main,
        children: [
            {
                path: 'sorting_video',
                name: 'ROLE_sorting:video',
                meta: {
                    icon: 'ios-document',
                    title: '分类记录'
                },
                component: () => import('@/view/sorting/video')
            }
        ]
    },
    { // 垃圾分类
        path: '/ROLE_YSY',
        name: 'ROLE_YSY',
        meta: {
            icon: 'md-aperture',
            title: '萤石云管理'
        },
        component: Main,
        children: [
            {
                path: 'YSY_device',
                name: 'ROLE_YSY:device',
                meta: {
                    icon: 'ios-document',
                    title: '监控设备'
                },
                component: () => import('@/view/YSY/device')
            },
            {
                path: 'YSY_monitor',
                name: 'ROLE_YSY:monitor',
                meta: {
                    icon: 'ios-document',
                    title: '智能监测'
                },
                component: () => import('@/view/YSY/monitor')
            }

        ]
    },
    { // 商户管理
        path: '/ROLE_business',
        name: 'ROLE_business',
        meta: {
            icon: 'md-aperture',
            title: '商户管理'
        },
        component: Main,
        children: [
            {
                path: 'business_manage',
                name: 'ROLE_business:manage',
                meta: {
                    icon: 'ios-document',
                    title: '商户列表'
                },
                component: () => import('@/view/business/list')
            },
            {
                path: 'business_record',
                name: 'ROLE_business:record',
                meta: {
                    icon: 'ios-document',
                    title: '商户交易记录'
                },
                component: () => import('@/view/business/record')
            },
            {
                path: 'business_brand',
                name: 'ROLE_business:brand',
                meta: {
                    icon: 'ios-document',
                    title: '品牌管理'
                },
                component: () => import('@/view/business/brand')
            },
            {
                path: 'business_category',
                name: 'ROLE_business:category',
                meta: {
                    icon: 'ios-document',
                    title: '品类管理'
                },
                component: () => import('@/view/business/category')
            },
            {
                path: 'business_spu',
                name: 'ROLE_business:spu',
                meta: {
                    icon: 'ios-document',
                    title: '标准商品'
                },
                component: () => import('@/view/business/spu')
            }, {
                path: 'business_default_spu',
                name: 'ROLE_business:default_spu',
                meta: {
                    icon: 'ios-document',
                    title: '系统默认商品'
                },
                component: () => import('@/view/business/defaultSpu')
            },
            {
                path: 'business_default_sku',
                name: 'ROLE_business:default_sku',
                meta: {
                    icon: 'ios-document',
                    title: '系统销售商品'
                },
                component: () => import('@/view/business/defaultSku')
            },
            {
                path: 'business_sku',
                name: 'ROLE_business:sku',
                meta: {
                    icon: 'ios-document',
                    title: '商户销售商品'
                },
                component: () => import('@/view/business/sku')
            }, {
                path: 'business_order',
                name: 'ROLE_business:order',
                meta: {
                    icon: 'ios-document',
                    title: '订单管理'
                },
                component: () => import('@/view/business/order')
            }

        ]
    },
    // 收呗垃圾分类后台 /adminSys/ROLE_shoubei  ios-pint-outline /adminSys/ROLE_shoubei/ROLE_shoubei:company ROLE_shoubei:company_admin
    {
        path: '/ROLE_shoubei',
        name: 'ROLE_shoubei',
        meta: {
            icon: 'md-aperture',
            title: '垃圾分类'
        },
        component: Main,
        children: [
            {
                path: 'shoubei_list',
                name: 'ROLE_shoubei:list',
                meta: {
                    icon: 'ios-document',
                    title: '垃圾类型列表'
                },
                component: () => import('@/view/recycle/list')
            },
            {
                path: 'shoubei_company',
                name: 'ROLE_shoubei:company',
                meta: {
                    icon: 'ios-document',
                    title: '回收企业列表'
                },
                component: () => import('@/view/recycle/company')
            },  
            {
                path: 'shoubei_site',
                name: 'ROLE_shoubei:site',
                meta: {
                    icon: 'ios-document',
                    title: '回收记录列表'
                },
                component: () => import('@/view/recycle/order')
            },
            {
                path: 'shoubei_statistics',
                name: 'ROLE_shoubei:statistics',
                meta: {
                    icon: 'ios-document',
                    title: '回收统计'
                },
                component: () => import('@/view/recycle/statistics')
            },
            // ios-pint-outline  ROLE_shoubei:list /adminSys/ROLE_shoubei/ROLE_shoubei:list
            {
                path: 'shoubei_vehicle',
                name: 'ROLE_shoubei:vehicle',
                meta: {
                    icon: 'ios-document',
                    title: '车辆定位'
                },
                component: () => import('@/view/recycle/vehicle')
            },
            {
                path: 'shoubei_reservation',
                name: 'ROLE_shoubei:reservation',
                meta: {
                    icon: 'ios-document',
                    title: '预约记录列表'
                },
                component: () => import('@/view/recycle/reservation')
            },
        ]
    },
    // {
    //   path: '/i18n',
    //   name: 'i18n',
    //   meta: {
    //     hideInBread: true
    //   },
    //   component: Main,
    //   children: [
    //     {
    //       path: 'i18n_page',
    //       name: 'i18n_page',
    //       meta: {
    //         icon: 'md-planet',
    //         title: 'i18n - {{ i18n_page }}'
    //       },
    //       component: () => import('@/view/i18n/i18n-page.vue')
    //     }
    //   ]
    // },

    // {
    //   path: '/directive',
    //   name: 'directive',
    //   meta: {
    //     hideInBread: true
    //   },
    //   component: Main,
    //   children: [
    //     {
    //       path: 'directive_page',
    //       name: 'directive_page',
    //       meta: {
    //         icon: 'ios-navigate',
    //         title: '指令'
    //       },
    //       component: () => import('@/view/directive/directive.vue')
    //     }
    //   ]
    // },

    {
        path: '/argu',
        name: 'argu',
        meta: {
            hideInMenu: true
        },
        component: Main,
        children: [
            {
                path: 'params/:id',
                name: 'params',
                meta: {
                    icon: 'md-flower',
                    title: route => `{{ params }}-${route.params.id}`,
                    notCache: true,
                    beforeCloseName: 'before_close_normal'
                },
                component: () => import('@/view/argu-page/params.vue')
            },
            {
                path: 'query',
                name: 'query',
                meta: {
                    icon: 'md-flower',
                    title: route => `{{ query }}-${route.query.id}`,
                    notCache: true
                },
                component: () => import('@/view/argu-page/query.vue')
            }
        ]
    },
    {
        path: '/401',
        name: 'error_401',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/401.vue')
    },
    {
        path: '/500',
        name: 'error_500',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/500.vue')
    },
    {
        path: '*',
        name: 'error_404',
        meta: {
            hideInMenu: true
        },
        component: () => import('@/view/error-page/404.vue')
    }

    // {
    //   path: 'state',
    //   name: '图表',
    //   meta: {
    //     hideInMenu: true
    //   },
    //   component: () => import('@/view/collection/CoInGoodsPrice.vue')
    // }

]
